#
# Be sure to run `pod lib lint MLVisionSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MLVisionSDK'
  s.version          = '0.1.0'
  s.summary          = 'A short description of MLVisionSDK.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/Lemon/MLVisionSDK'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Lemon' => '6666666' }
  s.source           = { :git => 'https://github.com/Lemon/MLVisionSDK.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '15.0'
  # 关键配置：声明为静态库
  s.static_framework = true
  
  s.source_files = 'MLVisionSDK/Classes/**/*'
  
  # 关键设置：启用分发构建
  s.pod_target_xcconfig = {
    'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES',
    'SKIP_INSTALL' => 'NO'  # 确保库被正确安装
  }
  
#   #如果依赖的库也需要此设置
#  s.user_target_xcconfig = {
#      'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES'
#  }
  
  # 配置 .a 静态库
  s.vendored_libraries = 'MLVisionSDK/Frameworks/libopus.a'
  
  # 配置.framework
  s.vendored_frameworks = [
  'MLVisionSDK/Frameworks/iflyAIUI.framework',
  'MLVisionSDK/Frameworks/iflyMSC.framework',
  'MLVisionSDK/Frameworks/SparkChain.framework'
  ]
  
   s.resource_bundles = {
     'MLResources' => ['MLVisionSDK/Assets/*.*',
     'MLVisionSDK/Classes/**/*.xib',
     'MLVisionSDK/Resources/*.*']
   }

   s.frameworks = 'AVFoundation', 'SystemConfiguration', 'Foundation', 'CoreTelephony', 'AudioToolbox', 'UIKit', 'CoreLocation', 'Contacts', 'AddressBook', 'QuartzCore', 'CoreGraphics','GLKit'
   s.libraries = ['z', 'c++', 'icucore']
   
   s.public_header_files = 'Pod/Classes/*.h'

   s.dependency 'IQKeyboardManagerSwift', '~> 8.0.0'
   s.dependency 'Kingfisher', '~> 8.0'
   s.dependency 'XCGLogger', '~> 7.1.5'
   s.dependency 'HandyJSON'
   s.dependency 'CryptoSwift'
   s.dependency 'Moya'
   s.dependency 'LSTPopView'
   s.dependency 'MBProgressHUD'
   s.dependency 'SnapKit'
   s.dependency 'lottie-ios'
   s.dependency 'EmptyDataSet-Swift'
   s.dependency 'TTTAttributedLabel'
   s.dependency 'ZLPhotoBrowser'
   s.dependency 'FMDB', '~> 2.7.12'
   s.dependency 'Starscream', '~> 4.0.6'
   s.dependency 'JXCategoryView'
   s.dependency 'JXBanner'
   s.dependency 'BTBubble'
   s.dependency 'YYKit'
   s.dependency 'SSZipArchive'
   s.dependency 'MJRefresh'
   s.dependency 'AEXML'
   s.dependency 'ImageViewer.swift'
   s.dependency 'AMapNavi', '~> 10.0.900'
   s.dependency 'AMapSearch'
   
end
